<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="cfn" uri="http://com.abou/cfn"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@page import="org.springframework.validation.Errors"%>

<%-- Creates a form img. Parameters are :
    - code : the label code for the input
    - path : the path for the input
    - focused : value must be "focused" to focus the input
    - mandatory : optional, boolean string value, 'true' if the field is mandatory.
    - width :  image width.
    - height :  image height.
    - align : image align.
    - src : image src.
    - alt : image alt.
 --%>

<jsp:include page="form-field-header.jsp">
  <jsp:param name="code" value="${param.code}"/>
  <jsp:param name="mandatory" value="${param.mandatory}"/>
  <jsp:param name="usePartialValue" value="${param.usePartialValue}"/>
</jsp:include>

<img width="${param.width}"  height="${param.height}" src="${param.src}"
	alt="${param.alt}" ALIGN="${param.align}">

<%-- Displaying the form field error message --%>
<jsp:include page="form-field-errors.jsp">
  <jsp:param name="path" value="${param.path}"/>
</jsp:include>

<jsp:include page="form-field-footer.jsp"/>